<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title>
            昵称重用检测
        </title>
    </head>
    <body>
        <?php
        // put your code here
        $nc=trim($_GET['nicheng']);
        include("conn/conn.php");
        
        $conn = prepare();
        ?>
        <table width="180" height="100" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#B0E0E6">
  <tr>
    <td height="50"><div align="center">
	
	<?php
	  if($nc=="") {
	    echo "请输入昵称!";
	  } else {
            $sql = exectue_sql_statement($conn, "select * from Members where members_name='$nc'");
	    $info=sqlsrv_fetch_array($sql);
		if($info==true) {
		  echo "对不起,该昵称已被占用!";
		} else {
		   echo "恭喜,该昵称没被占用!";
		} 
	  }
	?>
	</div></td>
  </tr>
  <tr>
    <td height="50"><div align="center"><input type="button" value="确定" onClick="window.close()"></div></td>
  </tr>
</table>

    </body>
</html>
